package com.framework.component.resolver.test.warehouse;

import com.framework.component.resolver.ValueResolver;
import com.framework.component.resolver.test.model.BusinessDomainContext;
import com.framework.component.resolver.test.vo.Warehouse;
import org.springframework.stereotype.Component;

@Component
public class WarehouseResolver implements ValueResolver<BusinessDomainContext, Warehouse> {
    @Override
    public Warehouse resolve(BusinessDomainContext context) {
        return Warehouse.builder().warehouseNo("1289").warehouseName("测试库房").build();
    }
}
